﻿<!DOCTYPE html>
<!-- 引入thymeleaf命名空间：属性提示  -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <base href="/">
    <title></title>
    <link rel="stylesheet" type="text/css" href="Styles/formui.css" />
    <link rel="stylesheet" type="text/css" href="Styles/admin-all.css" />
    <link rel="stylesheet" type="text/css" href="Styles/base.css"/>
    <script type="text/javascript" src="Scripts/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="Scripts/jquery-ui-1.8.22.custom.min.js"></script>
    <link rel="stylesheet" type="text/css" href="Styles/ui-lightness/jquery-ui-1.8.22.custom.css" />
    <script type="text/javascript">
        $(function () {
            $('#center').hide();
            $('#bottom').hide();
            $('.top-next').click(function () {
                $('#top').hide();
                $('#center').show();
            })
            $('.center-next').click(function () {
                $('#center').hide();
                $('#bottom').show();
            })
            $('.center-prev').click(function () {
                $('#center').hide();
                $('#top').show();
            })
            $('.bottom-prev').click(function () {
                $('#bottom').hide();
                $('#center').show();
            })
        })
    </script>
    <style type="text/css">
        .auto-style1 {
            height: 26px;
        }
    </style>
</head>
<body>
    <div class="alert alert-info">当前位置<b class="tip"></b>部门管理<b class="tip"></b>数据查看</div>
    <table class="tb" id="top">
        <thead>
            <tr >
                <th>部门编号 </th>
                <th>名称</th>
                <th>管理编号 </th>
                <th>电话 </th>
                <th>人数 </th>
                <th>操作 </th>
            </tr>
        </thead>
        <tbody>
                <tr th:each="dept:${list}"><!--循环遍历-->
                    <td><a th:text="${dept.deptid}">1</a></td><!--取值-->
                    <td th:text="${dept.dname}">销售部</td>
                    <td th:text="${dept.managerid}">9527</td>
                    <td th:text="${dept.tel}">10086</td>
                    <td th:text="${dept.num}">100</td>
                    <td><a th:href="@{/system/dept/jump(deptid=${dept.deptid})}">修改</a>|
                        <a th:href="@{/system/dept/del(deptid=${dept.deptid})}">删除</a></td>
                </tr>
            <tr class="tr_pagenumber">
                <td colspan="100">
                    <input class="btn top-next" id="find" type="button" value="下一步" /></td>
            </tr>
        </tbody>
    </table>
</body>
</html>
